<?php
namespace app\common\model\apiinput;
use think\Model;
use app\common\model\orderdata\Goods;
class Apiyunkerecords extends Model
{
    // 设置当前模型对应的完整数据表名称
    protected $table = 'api_yunke_records';
    protected $pk = 'msgSvrId';

    /**
     * 获取业务人员信息
     * @return [type] [description]
     */
    public function bussinfo(){
        return $this->hasOne('app\common\model\apiinput\Apiyunkeaccounts','wechatId','wechatId');
    }

    public function customerwechatinfo(){
        return $this->hasOne('app\common\model\apiinput\Apiyunkefriends','id','talker');
    }
}
